package bairui.international.config;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.mock.web.MockHttpSession;
import org.springframework.test.context.web.WebAppConfiguration;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.web.context.WebApplicationContext;

import bairui.international.console.web.App_Bairui_International_Console;

@SpringBootTest(classes={
	Config_Base.Config.class
})
class Config_Base extends Config_Beep {

	@Autowired protected WebApplicationContext wac;
	@Autowired protected HttpServletRequest request;
	@Autowired protected MockHttpSession session;
	@PersistenceContext protected EntityManager entityManager;
	protected MockMvc mockMvc;
	
	/**
	 * 配置
	 */
    @Configuration
    @WebAppConfiguration
    @EnableAutoConfiguration
    @ComponentScan(
		basePackageClasses=App_Bairui_International_Console.class, 
		excludeFilters=@Filter(type=FilterType.ASSIGNABLE_TYPE, classes={App_Bairui_International_Console.class})
	)
    static class Config{
    	
    }
    
}
